<template>
	<view class="" style="padding: 30rpx;">
		<view class="" style="margin-top: 200rpx; padding: 30rpx;">
			<u-button type="primary" @click="zongzf">支付</u-button>
		</view>
	</view>
</template>

<script>
	export default {
			data() {
				return {
					 
				}
			},
			onLoad() {
				
			},
			computed:{
				
			},
			methods: {
				zongzf(){
					let registerid='123'
					let config={
						CF_Base_RedirectUrl:'http://jnwechat.xztongyong.cn/WeChart/Register/PayDetail',
						CF_Base_YBSQUrl:'https://exp.wecity.qq.com/oauth/code',
						//
						// CF_MP_AppId:'wx0d080850649831d2',
						//公司公众号
						CF_MP_AppId:'wx756adecba51373d5',
						CF_Base_CityCode:'150900',
						CF_Base_Channel:'AAGSI1E2ICo7EOu3QZSkF97S',
						CF_Base_orgChnlCrtfCodg:'BqK1kMStlhVDgN2uHf4EsLK%2FF2LjZPYJ81nK2eYQqxuBWQzlWBM4kQX3aSYo%2B%2F%2BD',
						CF_Base_orgCodg:'H15090200091',
						CF_Base_bizType:'04107',
						CF_Base_orgAppId:'1HTNOFU8Q00G3F60C80A0000D3E61B0C'
					}
					let RedirectUrl = config.CF_Base_RedirectUrl + "?registerid=" + registerid;
					let url = config.CF_Base_YBSQUrl + '?authType=2' + '&isDepart=2'
					+ '&appid=' + config.CF_MP_AppId + '&cityCode=' + config.CF_Base_CityCode +
					'&channel=' + config.CF_Base_Channel+
					'&orgChnlCrtfCodg=' + config.CF_Base_orgChnlCrtfCodg+
					'&orgCodg=' + config.CF_Base_orgCodg+
					'&bizType=' + config.CF_Base_bizType+
					'&orgAppId=' + config.CF_Base_orgAppId +
					'&redirectUrl=' + RedirectUrl;
					
					window.location.href= url
				}
			}
		}
</script>

<style>
	@import './payment.css'
</style>